//
// Created by liang on 2025/5/10.
//
#include <gtest/gtest.h>
#include "SSUtil.h"
#include "TaskStatus.h"
#include "taskstep/MallTaskStep.h"
#include <QApplication>
#include <iostream>

// 测试TaskStatus类
TEST(TaskStatusTest, TestMallIsMatch) {

    MallTaskStep step;
    QString sourceFile = QCoreApplication::applicationDirPath() +  "/resources/testfile/mall.png";
    step.setSourcePicture(std::move(sourceFile));
    bool isMatch = step.isMatchingStep();
    std::cout << isMatch << ":"<<sourceFile.toStdString();

}

TEST(TaskStatusTest, Initialization) {
    std::cout <<"123" << std::endl;
}

// main函数（如果没有其他main函数）
int main(int argc, char **argv) {
    QApplication app(argc, argv);
    ::testing::InitGoogleTest(&argc, argv);
    return RUN_ALL_TESTS();
}